Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON subdictionary for setting initial conditions #1738

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

gloopydoop
Copy link
Collaborator

@gloopydoop gloopydoop commented Feb 28, 2025

This PR introduces a json sub-dictionary instead of hard coding case.fluid and case.scalar to allow more re-usability of flow_ic and scalar_ic.

NOTE
There is a change to how the Blasius parameters enters case file, so I hope this doesn't cause an inconvenience to people already using this BC.

@gloopydoop gloopydoop closed this Feb 28, 2025
@gloopydoop gloopydoop reopened this Feb 28, 2025
@gloopydoop gloopydoop marked this pull request as draft February 28, 2025 15:23
@gloopydoop gloopydoop closed this Feb 28, 2025
@gloopydoop gloopydoop reopened this Mar 4, 2025
@gloopydoop gloopydoop marked this pull request as ready for review March 8, 2025 14:04
@timofeymukha
Copy link
Collaborator

Harry, there is probably a problem with the hemi in reframe. You have to change the case file template there.

@timofeymukha
Copy link
Collaborator

So you are just changing where the config for blasius is, right? I think that is good, since it is no longer shared between the bcs and the ics.

@pschlatt1
Copy link
Collaborator

btw, regarding Blasius in general: Should one not just add a correct Blasius profile? I would never use any of these approximations for a serious simulation.

@njansson
Copy link
Collaborator

njansson commented Mar 9, 2025

btw, regarding Blasius in general: Should one not just add a correct Blasius profile? I would never use any of these approximations for a serious simulation.

Yes please do!

@gloopydoop
Copy link
Collaborator Author

Harry, there is probably a problem with the hemi in reframe. You have to change the case file template there.

Thanks 👍

@gloopydoop
Copy link
Collaborator Author

So you are just changing where the config for blasius is, right? I think that is good, since it is no longer shared between the bcs and the ics.

Yeh exactly (I actually just change it one more time such that it's more in line with the other ICs)

"approximation": "sin",
"delta": 0.6,
"freestream_velocity": [1.0, 0.0, 0.0]
},
"inflow_condition": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, this can be removed, because it is not read anymore. This stuff should be directly in the boundary_conditions dict.

Comment on lines +268 to +269
call json_extract_object(this%params, 'case.fluid.initial_condition', &
json_subdict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelate to this PR, we should reasses as to why the case has to take care of fluids ics, and not fluid itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants